From bb992ff00df0aa437b8fbfba30b0b8d8b1563714 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 26 Dec 2017 11:34:18 -0500 Subject: [PATCH] More documentation additions --- gdk/gdkapplaunchcontext.c | 6 ++++++ gdk/gdktypes.h | 29 +++++++++++++++-------------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c index 44d0d5203b..68acd7fa6c 100644 --- a/gdk/gdkapplaunchcontext.c +++ b/gdk/gdkapplaunchcontext.c @@ -52,6 +52,12 @@ * ]| */ +/** + * GdkAppLaunchContext: + * + * The GdkAppLaunchContext struct contains only private fields + * and should not be accessed directly. + */ static void gdk_app_launch_context_finalize (GObject *object); static gchar * gdk_app_launch_context_get_display (GAppLaunchContext *context, diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h index d77094a2ad..4351302c7f 100644 --- a/gdk/gdktypes.h +++ b/gdk/gdktypes.h @@ -66,12 +66,26 @@ G_BEGIN_DECLS -/* Type definitions for the basic structures. +/** + * GdkPoint: + * @x: the x coordinate of the point + * @y: the y coordinate of the point + * + * Defines the x and y coordinates of a point. */ +struct _GdkPoint +{ + gint x; + gint y; +}; typedef struct _GdkPoint GdkPoint; /** * GdkRectangle: + * @x: the x coordinate of the top left corner + * @y: the y coordinate of the top left corner + * @width: the width of the rectangle + * @height: the height of the rectangle * * Defines the position and size of a rectangle. It is identical to * #cairo_rectangle_int_t. @@ -419,19 +433,6 @@ typedef enum GDK_ALL_EVENTS_MASK = 0x3FFFFFE } GdkEventMask; -/** - * GdkPoint: - * @x: the x coordinate of the point. - * @y: the y coordinate of the point. - * - * Defines the x and y coordinates of a point. - */ -struct _GdkPoint -{ - gint x; - gint y; -}; - /** * GdkGLError: * @GDK_GL_ERROR_NOT_AVAILABLE: OpenGL support is not available -- 2.30.2